// The users module. If you do not need any specific features, you can
// leave it an empty object.
const data = {
  location: "associates",
  modal: {
    property: [
      {
        description: "",
        key: "createdAt",
        name: "创建时间",
        type: "input",
        value: "",
        disabled: true,
        edit: false,
        save: false,
        requre: false
      },
      {
        description: "",
        key: "updatedAt",
        name: "更新时间",
        type: "input",
        value: "",
        disabled: false,
        edit: false,
        save: false,
        requre: false
      },
      {
        description: "",
        key: "feedback",
        name: "反馈",
        type: "textarea",
        value: "",
        disabled: false,
        edit: false,
        save: false,
        requre: true
      },
      {
        description: "",
        key: "reporter",
        name: "报告人",
        type: "input",
        value: "",
        disabled: false,
        edit: false,
        save: true,
        requre: true
      },
      {
        description: "",
        key: "reportTitle",
        name: "标题",
        type: "input",
        value: "",
        disabled: false,
        edit: false,
        save: true,
        requre: true
      },
      {
        description: "",
        key: "opinions",
        name: "意见",
        type: "textarea",
        value: "",
        disabled: false,
        edit: false,
        save: true,
        requre: false
      },
      {
        description: "",
        key: "status",
        name: "状态",
        type: "select",
        value: "",
        disabled: false,
        edit: true,
        save: true,
        requre: false,
        options: [
          {
            value: 1,
            text: "问题已经提交"
          },
          {
            value: 2,
            text: "问题正在解决"
          },
          {
            value: 3,
            text: "问题还在分析"
          },
          {
            value: 4,
            text: "问题解决成功"
          },
          {
            value: 5,
            text: "问题解决失败"
          }
        ]
      },
      {
        description: "",
        key: "type",
        name: "类型",
        type: "select",
        disabled: false,
        edit: false,
        save: true,
        options: [
          {
            value: 1,
            text: "需求问题"
          },
          {
            value: 2,
            text: "界面问题"
          },
          {
            value: 3,
            text: "核心问题"
          },
          {
            value: 4,
            text: "问题解决成功"
          },
          {
            value: 5,
            text: "其他问题"
          }
        ]
      },
      {
        description: "",
        key: "_links",
        name: "链接",
        type: "input",
        disabled: true,
        edit: false
      }
    ]
  },
  table: {
    fields: [
      { key: "associate", label: "选择" },
      {
        key: "reporter",
        label: "报告人",
        sortable: true
      },
      {
        key: "reportTitle",
        label: "标题",
        sortable: true
      },
      {
        key: "status",
        label: "状态",
        sortable: true
      },
      {
        key: "type",
        label: "问题类型",
        sortable: true
      },
      {
        key: "operation",
        label: "操作",
        sortable: true
      }
    ]
  }
};
function match(key) {
  return data.property[key];
}

export default data;
// The posts module. You can add any additional things you want.
